Server-side internationalization and localization of web applications using a scripting language

ABSTRACT

A server computing system receives a request for a web page from a client that specifies a preferred language and searches mapping data stored in a local data store using a web page identifier in the request to locate one or more terms for the requested web page to be translated. The server computing system searches translations for web pages in the local data store for a sub-set of the translations that correspond to the terms for the requested web page in the specified language. The computer system generates a client-executable script to provide the sub-set of translations that correspond to the terms to the client and transmits the requested web page and the client-executable script having the sub-set of translations for the requested web page to the client. The client-executable script, when executed on the client, renders the web page in the specified language.

TECHNICAL FIELD

Embodiments of the present invention relate to internationalization ofweb applications. Specifically, the embodiments of the present inventionrelate to server-side internationalization of web applications using ascripting language.

BACKGROUND

JAVASCRIPT code is often used to update/render specific areas of a webpage by modifying the web page's current elements. JAVASCRIPT messagescan be used to alert users of errors and other types of messaging thatare separate from a web application server. At times, the JAVASCRIPTmessages include text to be translated. Internationalization of webapplication pages, including JAVASCRIPT messages, involves developingthe web application to be adapted to various languages and regionswithout having to make extensive application programming changes.Localization is the process of adapting an internationalized applicationfor a specific region or language by adding locale-specific componentsand translating text. Internationalization and localization is oftenabbreviated to ‘i18n’.

Conventional internationalization and localization solutions usuallyinvolve designing an application to reference resource libraries.Traditionally, an application's client-side code uses a ‘gettext’client-side method to access a large resource library of translatedstrings, which is downloaded to the client from a server. A server sendsall known translated strings to a client (in multiple locales) in theform of a resource library. Subsequently, the client looks up atranslation of the components of the client-side code in the resourcelibrary and retrieves the translated strings from the library. Use of alarge resource library on the client, however, results in an inefficientuse of client resources. Clients needlessly download a library ofthousands of translated strings, but utilize only a fraction of thelibrary, using more network bandwidth than needed. For example, a clientdownloads five thousand translated strings and searches thousands oftranslated strings, when needing to retrieve, for example, only 20translated strings for a web application page. In another example, aclient does not need many of the locales that are provided by a largeresource library. Some traditional solutions use JSON (JAVASCRIPT ObjectNotation) data structures to hold translations for all locales on theclient. The JSON format is often used for serializing and transmittingstructured data over a network connection and is primarily used totransmit data between a server and a web application. As an applicationgrows, the resource library of translated strings also grows, and theuse of JSON leads to scalability issues. The installation of a largeresource library on the client and the use of the JSON format increasesthe bandwidth needed to support the client, which creates more strain ona server since many clients are talking to the same server.

BRIEF DESCRIPTION OF THE DRAWINGS

The present invention is illustrated by way of example, and not by wayof limitation, in the figures of the accompanying drawings in which likereferences indicate similar elements. It should be noted that differentreferences to “an” or “one” embodiment in this disclosure are notnecessarily to the same embodiment, and such references mean at leastone.

FIG. 1 is an exemplary network architecture in which embodiments of thepresent invention may operate.

FIG. 2 is a block diagram of one embodiment of a translation module.

FIG. 3 is a flow diagram of an embodiment of a method for server-sidetranslation of web pages.

FIG. 4 is a block diagram of exemplary client-executable script that isgenerated on a server and transmitted to a client for translation of aweb page.

FIG. 5 is a diagram of one embodiment of a computer system forserver-side translation of web pages.

DETAILED DESCRIPTION

Embodiments of the invention are directed to a method and system forserver-side translation of web pages using a script language. A servercomputing system receives a request for a web page from a client thatspecifies a preferred language. The server computing system searchesmapping data stored in a local data store using a web page identifier inthe request to locate one or more terms for the requested web page to betranslated. The server computing system searches a translations for webpages in the local data store for a sub-set of the translations thatcorrespond to the one or more terms for the requested web page in thespecified language. The computer system generates a client-executablescript to provide the sub-set of translations that correspond to the oneor more terms to the client and transmits the requested web page and theclient-executable script having the sub-set of translations for therequested web page to the client. The client-executable script, whenexecuted on the client, renders the web page in the specified language.

Embodiments of the present invention greatly reduce the amount of workwhich client web browsers perform with regards to displaying text tosupport internationalization and localization efforts. Embodimentsperform server-side creation of script, such as JAVASCRIPT code, thattranslates only the locales and the translated strings that are neededby the client for a particular web page and sends a dynamic script(e.g., JAVASCRIPT code) containing the translations to the client.Embodiments provide a scalable solution and eliminate unnecessary wastedbandwidth associated with data that is not going to be used on a client.

FIG. 1 is an exemplary network architecture 100 in which embodiments ofthe present invention can be implemented. The architecture 100 includesa web application server 150 coupled to one or more clients 140 via anetwork 120. A client 140 can be hosted by any type of computing deviceincluding server computers, gateway computers, desktop computers, laptopcomputers, mobile communications devices, cell phones, smart phones,hand-held computers, or similar computing device. The network 120 can bea public network (e.g., Internet) or a private network (e.g., a localarea network (LAN)).

A user 101, such as a web user, can use a client 140 to access Internetdata hosted by a web application server 150. A web application server150 can be hosted by any type of computing device including servercomputers, gateway computers, desktop computers, laptop computers,hand-held computers or similar computing device. For example, the user101 may wish to reserve an airline flight using the Internet and mayaccess the web page 185 of an airline to search for a flight andpurchase a ticket. The client 140 can access one or more web pages 185using a browser 180, or a similar web-page rendering application, toretrieve a web page 185 from a web application server 150 and render theretrieved web page 185 on the client 140. A browser 180 can beconfigured by a user 101 for a default or preferred language preferencesettings. The language preference settings, hereinafter referred to as“locale”, may be automatically set in the web browser configurationautomatically (based on the client location or the language used by auser) or based on a user's preferences. In addition, a web page 185 canpresent a user 101 with a number of different country options fortranslating the web page 185.

The web application server 150 can include a translation module 110 toreceive an initial request for a web page 185 from a web browser 180 fora particular web page 185. The translation module 110 can generatetranslation script 183 for the requested web page 185 and transmit thetranslation script 183 and the requested web page 185 to the browser 180via the network 120. The translation script 183 can be client-sideJAVASCRIPT code to run on a client 140. The translation script 183 caninclude the translations needed by a browser 180 for a particularlocale. The browser 180 can receive the web page 185 and the translationscript 183 and load the web page 185. When the translation script 183 isexecuted by the browser 180, the translation script 183 can dynamicallyload the translations for the web page 185 on demand to render the webpage 185 in an appropriate language.

Thus, the client 140 can use a minimal amount of client resources (e.g.,memory, storage space, network bandwidth, etc.) by receiving atranslation script 183 from a server 150 for a particular web page 185and storing and executing the translation script 183 corresponding toparticular web pages 185, rather than locally storing an entire libraryof translations in various languages.

FIG. 2 is a block diagram of one embodiment of a translation module 200for server-side translation of web pages. In one embodiment, thetransaction manager module 200 can be the same as the translation module110 hosted by a server 150 of FIG. 1. The translation module 200 caninclude a data generator sub-module 205, a search sub-module 210, ascript sub-module 215, and a user interface (UI) generator sub-module225.

One or more users, such as web application developers, can develop webpages for a web application. The web pages can include strings thatshould be translated. The data generator sub-module 205 can search forindicators in the source code 261 for the web pages, which indicate thata translation is required for one or more strings, and generate adictionary 251 based on the indicators and strings. The source code 261can be stored in a data store 260 that is coupled to the translationmodule 200. The dictionary 251 can be a flat file, relational database,spreadsheet, or the like, and stored in a data store 250. A data store250,260 can be a persistent storage unit. A persistent storage unit canbe a local storage unit or a remote storage unit. Persistent storageunits can be a magnetic storage unit, optical storage unit, solid statestorage unit, electronic storage units (main memory), or similar storageunit. Persistent storage units can be a monolithic device or adistributed set of devices. A ‘set’, as used herein, refers to anypositive whole number of items.

The data generator sub-module 205 can generate and send a request to atranslator to translate the dictionary 251. The request can include thedictionary 251 and can also specify which languages to translate thedictionary 251 to. In one embodiment, the translator is an automatedtranslation service provided by a service provider and/or provided by atranslation application or translation tool. In one embodiment, thetranslation service provider specifies the languages to be used fortranslation. In one embodiment, the translator is hosted by the samecomputing system that hosts the data generator sub-module 205. Inanother embodiment, the translator is hosted by a computing system thatis separate from the computing system that hosts the data generatorsub-module 205 and the data generator sub-module 205 communicates withthe translator via a network. In another embodiment, the translator isone or more users that provide a translation service and the datagenerator sub-module 205 can receive user input of a translation resultfrom the users via the user interface 202. The user interface 202 can bea graphical user interface. The user interface generator sub-module 225can generate the user interface 202.

The data generator sub-module 205 can receive a translation result fromthe translator and store the translation result as a translateddictionary 253 in the data store 250. The translated dictionary 253 caninclude the strings and values for the strings. The values can be thetranslation of the string in different languages.

The data generator sub-module 205 can use the strings in the translateddictionary 253 as keys to search the translated dictionary 253. The datagenerator sub-module 205 can generate and store web page mapping data255 that contains web page identifiers and the keys that correspond tothe web page identifiers. Examples of a web page identifier can include,and are not limited to, a uniform resource locator (URL) and IP address.The data generator sub-module 205 can generate the web page mapping data255 based on the web pages developed by the web application developers.For example, web mapping data 255 may include a URL and/or IP addressfor an account login web page and the keys of the terms to be translatedin the account login web page, such as ‘login’, ‘username’, ‘password’,‘forgot password’, and ‘submit’.

The search sub-module 210 can receive a request for a web page of a webapplication from, for example, a web browser, and can access the storedweb page mapping data 255 and translated dictionary 253 to provide theweb browser the values of the terms to be translated in the requestedweb page. The search sub-module 210 can locate a web page identifier inthe request and search the web page mapping data 255 for a matching webpage identifier and determine which keys are associated with the webpage identifier. The search sub-module 210 can use the keys and a localeidentifier in the request to search the translated dictionary 253 forthe translation values that correspond to the keys in the language asspecified by the locale identifier.

The script sub-module 215 can generate a dynamic script, such asJAVASCRIPT code, that includes the translation values that correspond tothe keys and send the script and the requested web page to the webbrowser as a response to the web page request. The script can provideall the translations needed for the requested web page in the specificlocale, as specified in the request. The web browser can load the webpage and use the script to render the web page with the translations.The script sub-module 215 can design the script to run immediately whenthe web page is loaded. A script can run before render, as well as whilerendering. In one embodiment, the script sub-module 215 generates scriptcode (e.g., JAVASCRIPT code) for a function embedded in an external file(e.g., .js file). The external file is a file that is separate from therequested web page. The script sub-module 215 can send the file and therequested web page to the client. In one embodiment, web applicationdevelopers include a reference to the file in a section (e.g., HEADsection) of code of the web page, and when the client loads therequested web page, the web page can call the function in the externalfile and reference the translation values provided from calling theexternal file to render the web page in the appropriate language.

In another embodiment, the script sub-module 215 generates script codeand modifies the source code of the requested web page by embedding thescript code in the source code for the requested web page. The scriptsub-module 215 can send the requested web page, which is modified toinclude the script code, to the client. When the client loads themodified code for the requested web page, the web page can execute thescript code to render the web page in the appropriate language.

For example, a user may wish to access an airline account log in webpage for access to airline data to purchase an airline ticket. Thesearch sub-module 210 receives a request for an account login web pagefrom the browser. The request includes the web page identifier“https://secure.example.com/account/login.html” and the localeidentifier “fr” to represent the French language preference. The searchsub-module 210 uses the web page identifier to search the mapping data255 for the keys that are associated with web page identifier for theaccount login web page. The mapping data 255 indicates that five keys,such as ‘login’, ‘username’, ‘password’, ‘forgot password’, and ‘submit’are associated with the web page identifier for the account login webpage. The keys represent the terms in the account login web page whichshould be translated. The search sub-module 210 uses the keys to searchthe translated dictionary for the values that correspond to the Frenchtranslations for the keys and the script sub-module 215 generates adynamic script (e.g., JAVASCRIPT code) that, when executed, provides thefive translation values and sends the script, for example, embedded aspart of the rendered account login web page, to the web browser. The webbrowser can use the dynamic script to render the five translation valuesin the account login web page.

FIG. 3 is a flow diagram of an embodiment of a method 300 forserver-side translation of web pages. Method 300 can be performed byprocessing logic that can comprise hardware (e.g., circuitry, dedicatedlogic, programmable logic, microcode, etc.), software (e.g.,instructions run on a processing device), or a combination thereof. Inone embodiment, method 300 is performed by the translation module 110hosted by a server 150 of FIG. 1.

At block 301, the translation module receives a request for a web page.The request can be from a client, such as a web browser, or similarweb-page rendering application. The request can be a HTTP (HypertextTransfer Protocol) request. At block 303, the translation moduleidentifies one or more terms to be translated for the requested webpage. The translation module can search mapping data that is stored in adata store that is coupled to the translation module using a web pageidentifier in the request to determine which keys correspond to the webpage identifier. The keys represent terms in the web page that should betranslated. The keys can be strings. Examples of a web page identifiercan include, and are not limited to, a uniform resource locator (URL)and an IP address.

With the request, the web browser sends information about languagepreference settings. These are preferences about the preferred languagefor one or more web pages. The language preference settings, hereinafterreferred to as “locale”, may be automatically set in the web browserconfiguration based on a user's preferences. At block 305, thetranslation module determines the locale for which the web browser isconfigured from the request. The request can include a localeidentifier, such as an i18n (internationalization and localization)country code identifier. The part of the HTTP request that can hold thelocale identifier (language preference information) can be anAccept-Language request-header. Alternatively, a web page may presenttranslation options to a user and a user may select a translation thatmay be different from a web browser's configuration. For example, a webpage can present a user with a number of different country options fortranslating the web page, such as Belgium, Greece, Russia, United ArabEmirates, China, Hong Kong, Japan, etc. The request can include a localeidentifier based on the user selection.

At block 307, the translation module uses the keys and the localeidentifier to search a translated dictionary that is stored in the datastore for a sub-set of translations in the translated dictionary thatcorrespond to the terms for the requested web page in the specifiedlanguage. The translated dictionary is a collection of translated termsfor the web pages of one or more web applications. The sub-set oftranslations can include the translation values that correspond to thekeys in the language as specified by the locale identifier. At block309, the translation module dynamically creates a script, such asJAVASCRIPT code, that when executed, provides the translation values forthe web page. The script can be dynamically generated by the translationmodule in response to receiving a request (e.g., an initial request) fora web page. The script can be dynamic client-executable script thatexecutes at run-time. The translation module can use a template that isstored in the data store to generate the script. At block 311, thetranslation module sends the requested web page and the script for therequested web page, for example, in an external file (e.g., .js file) orembedded as part of code of the requested web page, to the client. Thetranslation module can transmit the requested web page and the script tothe client over a network. The script, when executed by the client,provides the translation values for a web browser to use to render theweb page in the specified language.

For example, the translation module receives a request for a passwordcreation confirmation web page. The request includes the web pageidentifier “https://secure.example.com/passwordcreation.html” and thelocale identifier “de” to represent the German language preference. Thetranslation module uses the web page identifier to search the mappingdata for the keys that are associated with the password creationconfirmation web page. The mapping data indicates that five keys, suchas ‘password_match’, ‘very_weak’, ‘weak’, ‘good’, ‘strong’, and‘meterText’ are associated with the web page identifier for the passwordcreation confirmation web page. The keys represent the terms in thepassword creation confirmation web page which should be translated. Thetranslation module uses the keys to search a translated dictionary forthe values that correspond to the German translations for the keys(e.g., ‘password_match’, ‘very_weak’, ‘weak’, ‘good’, ‘strong’, and‘meterText’). The translation module generates a script (e.g.,JAVASCRIPT code) that provides the translation values and sends it tothe web browser. The web browser can load the requested web page andexecute the dynamic script to render the password creation confirmationweb page using the German translations of ‘password_match’, ‘very_weak’,‘weak’, ‘good’, ‘strong’, and ‘meterText’.

FIG. 4 is a block diagram of an exemplary client-executable script 400that is dynamically generated by a translation module on a server andsent to a client for the client to use to render a web page with theappropriate translations. The translation module can dynamicallygenerate the client-executable script 400 in response to receiving arequest, such as an initial request during a session, for the web page.The client-executable script 400 is used to create a JAVASCRIPT variablenamed ‘localize’. The client-executable script 400 can be executed by aclient after the client receives the server response delivering theclient-executable script 400 from the initial client request for the webpage. When executed by a browser on the client, the client-executablescript 400 provides the translation values of the terms in a web page tothe web browser, which can then render translated text for the web page.

FIG. 5 illustrates a diagram of a machine in the exemplary form of acomputer system 500 within which a set of instructions, for causing themachine to perform any one or more of the methodologies discussedherein, may be executed. In alternative embodiments, the machine may beconnected (e.g., networked) to other machines in a LAN, an intranet, anextranet, and/or the Internet. The machine may operate in the capacityof a server or a client machine in client-server network environment, oras a peer machine in a peer-to-peer (or distributed) networkenvironment.

The machine may be a personal computer (PC), a tablet PC, a set-top box(STB), a Personal Digital Assistant (PDA), a cellular telephone, a webappliance, a server, a network router, a switch or bridge, or anymachine capable of executing a set of instructions (sequential orotherwise) that specify actions to be taken by that machine. Further,while only a single machine is illustrated, the term “machine” shallalso be taken to include any collection of machines that individually orjointly execute a set (or multiple sets) of instructions to perform anyone or more of the methodologies discussed herein.

The exemplary computer system 500 includes a processing device 502, amain memory 504 (e.g., read-only memory (ROM), flash memory, dynamicrandom access memory (DRAM) such as synchronous DRAM (SDRAM), doubledata rate (DDR SDRAM), or DRAM (RDRAM), etc.), a static memory 506(e.g., flash memory, static random access memory (SRAM), etc.), and adata storage device 518, which communicate with each other via a bus530.

Processing device 502 represents one or more general-purpose processingdevices such as a microprocessor, a central processing unit, or thelike. More particularly, the processing device may be complexinstruction set computing (CISC) microprocessor, reduced instruction setcomputing (RISC) microprocessor, very long instruction word (VLIW)microprocessor, or processor implementing other instruction sets, orprocessors implementing a combination of instruction sets. Processingdevice 502 may also be one or more special-purpose processing devicessuch as an application specific integrated circuit (ASIC), a fieldprogrammable gate array (FPGA), a digital signal processor (DSP),network processor, or the like. The processing device 502 is configuredto execute instructions 522 for performing the operations and stepsdiscussed herein.

The computer system 500 may further include a network interface device508. The computer system 500 also may include a video display unit 510(e.g., a liquid crystal display (LCD) or a cathode ray tube (CRT)), analphanumeric input device 512 (e.g., a keyboard), a cursor controldevice 514 (e.g., a mouse), and a signal generation device 516 (e.g., aspeaker).

The data storage device 518 may include a machine-readable storagemedium 528 (also known as a computer-readable medium) on which is storedone or more sets of instructions or software 522 embodying any one ormore of the methodologies or functions described herein. Theinstructions 522 may also reside, completely or at least partially,within the main memory 504 and/or within the processing device 502during execution thereof by the computer system 500, the main memory 504and the processing device 502 also constituting machine-readable storagemedia.

In one embodiment, the instructions 522 include instructions for atranslation module (e.g., translation module 200 of FIG. 2) and/or asoftware library containing methods that call a translation module.While the machine-readable storage medium 528 is shown in an exemplaryembodiment to be a single medium, the term “machine-readable storagemedium” should be taken to include a single medium or multiple media(e.g., a centralized or distributed database, and/or associated cachesand servers) that store the one or more sets of instructions. The term“machine-readable storage medium” shall also be taken to include anymedium that is capable of storing or encoding a set of instructions forexecution by the machine and that cause the machine to perform any oneor more of the methodologies of the present invention. The term“machine-readable storage medium” shall accordingly be taken to include,but not be limited to, solid-state memories, optical media and magneticmedia.

Thus, techniques for server-side translation of web pages using a scriptlanguage are described herein. Some portions of the preceding detaileddescriptions have been presented in terms of algorithms and symbolicrepresentations of operations on data bits within a computer memory.These algorithmic descriptions and representations are the ways used bythose skilled in the data processing arts to most effectively convey thesubstance of their work to others skilled in the art. An algorithm ishere, and generally, conceived to be a self-consistent sequence ofoperations leading to a desired result. The operations are thoserequiring physical manipulations of physical quantities. Usually, thoughnot necessarily, these quantities take the form of electrical ormagnetic signals capable of being stored, combined, compared, andotherwise manipulated. It has proven convenient at times, principallyfor reasons of common usage, to refer to these signals as bits, values,elements, symbols, characters, terms, numbers, or the like.

It should be borne in mind, however, that all of these and similar termsare to be associated with the appropriate physical quantities and aremerely convenient labels applied to these quantities. Unlessspecifically stated otherwise as apparent from the above discussion, itis appreciated that throughout the description, discussions utilizingterms such as “receiving” or “searching” or “transmitting” or“generating” or “embedding” or “modifying” or “translating” or “storing”or the like, refer to the action and processes of a computer system, orsimilar electronic computing device, that manipulates and transformsdata represented as physical (electronic) quantities within the computersystem's registers and memories into other data similarly represented asphysical quantities within the computer system memories or registers orother such information storage devices.

The present invention also relates to an apparatus for performing theoperations herein. This apparatus may be specially constructed for therequired purposes, or it may comprise a general purpose computerselectively activated or reconfigured by a computer program stored inthe computer. Such a computer program may be stored in a computerreadable storage medium, such as, but not limited to, any type of diskincluding floppy disks, optical disks, CD-ROMs, and magnetic-opticaldisks, read-only memories (ROMs), random access memories (RAMs), EPROMs,EEPROMs, magnetic or optical cards, or any type of media suitable forstoring electronic instructions, each coupled to a computer system bus.

The algorithms and displays presented herein are not inherently relatedto any particular computer or other apparatus. Various general purposesystems may be used with programs in accordance with the teachingsherein, or it may prove convenient to construct a more specializedapparatus to perform the required method steps. The required structurefor a variety of these systems will appear as set forth in thedescription below. In addition, the present invention is not describedwith reference to any particular programming language. It will beappreciated that a variety of programming languages may be used toimplement the teachings of the invention as described herein.

The present invention may be provided as a computer program product, orsoftware, that may include a machine-readable medium having storedthereon instructions, which may be used to program a computer system (orother electronic devices) to perform a process according to the presentinvention. A machine-readable medium includes any mechanism for storinginformation in a form readable by a machine (e.g., a computer). Forexample, a machine-readable (e.g., computer-readable) medium includes amachine (e.g., a computer) readable storage medium such as a read onlymemory (“ROM”), random access memory (“RAM”), magnetic disk storagemedia, optical storage media, flash memory devices, etc.

In the foregoing specification, embodiments of the invention have beendescribed with reference to specific exemplary embodiments thereof. Itwill be evident that various modifications may be made thereto withoutdeparting from the broader spirit and scope of embodiments of theinvention as set forth in the following claims. The specification anddrawings are, accordingly, to be regarded in an illustrative senserather than a restrictive sense.

What is claimed is:
 1. A method comprising: receiving a request for aweb page from a client web browser, the request comprising a localeidentifier that specifies a preferred language and a web pageidentifier; searching mapping data stored in a local data storeassociating web page identifiers with keys that correspond to the webpage identifiers to identify one or more keys mapped to the web pageidentifier, the one or more keys being identifiers of translatable termswithin a plurality of web pages; searching, within the local data store,to identify a sub-set of a plurality of translations that corresponds toone or more translatable terms in the requested web page, wherein thesub-set is identified using the locale identifier and the one or morekeys; dynamically generating a client-executable script to provide thesub-set of translations that correspond to the one or more terms to theclient web browser; and transmitting, by a processing device of aserver, the requested web page together with the client-executablescript comprising the sub-set of translations for the requested web pageto the client web browser, wherein transmitting the requested web pagetogether with the client-executable script comprises: transmitting theclient-executable script in an external file that is separate from theweb page; and embedding a reference to the external file in a section ofcode of the web page, wherein, when the web page is loaded by the clientweb browser, the client-executable script in the external file isexecuted to render the web page in the preferred language associatedwith the locale identifier.
 2. The method of claim 1, furthercomprising: searching for indicators in source code for the plurality ofweb pages indicating terms in the plurality of web pages to betranslated; generating a dictionary comprising the terms to betranslated for the plurality of web pages; translating the dictionary ina plurality of languages to generate the plurality of translations forthe plurality of web pages; and storing the plurality of translations inthe plurality of languages for the plurality of web pages in the localdata store.
 3. The method of claim 1, wherein searching to identify thesub-set of the plurality of translations comprises: searching fortranslation values that correspond to the one or more terms in view ofthe locale identifier in the request, the translation values beingtranslations of terms for the requested web page in a languageassociated with the locale identifier.
 4. The method of claim 1, whereinthe web page identifier is a uniform resource locator.
 5. A systemcomprising: a memory to store a plurality of translations of terms for aplurality of web pages; and a processing device operatively coupled tothe memory to: receive a request for a web page from a client webbrowser, the request comprising a locale identifier that specifies apreferred language and a web page identifier; search mapping data storedin a local data store associating web page identifiers with keys thatcorrespond to the web page identifiers to identify one or more keysmapped to the web page identifier, the one or more keys beingidentifiers of translatable terms within a plurality of web pages;search, within the local data store, to identify a sub-set of aplurality of translations that corresponds to one or more translatableterms in the requested web page, wherein the sub-set is identified usingthe locale identifier and the one or more keys; dynamically generate aclient-executable script to provide the sub-set of translations thatcorrespond to the one or more terms to the client web browser; andtransmit the requested web page together with the client-executablescript comprising the sub-set of translations for the requested web pageto the client web browser, wherein to transmit the requested web pageand the client-executable script the processing device is to: transmitthe client-executable script in an external file that is separate fromthe web page; and embed a reference to the external file in a section ofcode of the web page, wherein, when the web page is loaded by theclient, the client-executable script in the external file is executed torender the web page in a language associated with the locale identifier.6. The system of claim 5, wherein the processing device is further to:search for indicators in source code for the plurality of web pagesindicating terms in the plurality of web pages to be translated;generate a dictionary comprising the terms to be translated for theplurality of web pages; translate the dictionary in a plurality oflanguages to generate the plurality of translations for the plurality ofweb pages; and store the plurality of translations in the plurality oflanguages for the plurality of web pages in the local data store.
 7. Thesystem of claim 5, wherein, to search to identify the sub-set of theplurality of translations, the processing device is further to: searchfor translation values that correspond to the one or more terms in viewof the locale identifier in the request, the translation values beingtranslations of terms for the requested web page in a languageassociated with the locale identifier.
 8. The system of claim 5, whereinthe web identifier is a uniform resource locator.
 9. A non-transitorycomputer-readable storage medium including instructions that, whenexecuted by a processing device of a server, cause the processing deviceto: receive a request for a web page from a client web browser, therequest comprising a locale identifier that specifies a preferredlanguage and a web page identifier; search mapping data stored in alocal data store associating web page identifiers with keys thatcorrespond to the web page identifiers to identify one or more keysmapped to the web page identifier, the one or more keys beingidentifiers of translatable terms within a plurality of web pages;search, within the local data store, to identify a sub-set of aplurality of translations that corresponds to one or more translatableterms in the requested web page, wherein the sub-set is identified usingthe locale identifier and the one or more keys; dynamically generate aclient-executable script to provide the sub-set of translations thatcorrespond to the one or more terms to the client web browser; andtransmit the requested web page together with the client-executablescript comprising the sub-set of translations for the requested web pageto the client web browser, wherein to transmit the requested web pageand the client-executable script, the instructions, when executed by theprocessing device of the server, further cause the processing device to:transmit the client-executable script in an external file that isseparate from the web page; and embed a reference to the external filein a section of code of the web page, wherein, when the web page isloaded by the client, the client-executable script in the external fileis executed to render the web page in a language associated with thelocale identifier.
 10. The non-transitory computer-readable storagemedium of claim 9, including further instructions that, when executed bythe processing device, cause the processing device to: search forindicators in source code for the plurality of web pages indicatingterms in the plurality of web pages to be translated; generate adictionary comprising the terms to be translated for the plurality ofweb pages; translate the dictionary in a plurality of languages togenerate the plurality of translations for the plurality of web pages;and store the plurality of translations in the plurality of languagesfor the plurality of web pages in the local data store.
 11. Thenon-transitory computer-readable storage medium of claim 9, wherein tosearch for the sub-set of the plurality of translations, theinstructions, when executed by the processing device of the server,further cause the processing device to: search for translation valuesthat correspond to the one or more terms in view of the localeidentifier in the request, the translation values being translations ofterms for the requested web page in a language associated with thelocale identifier.